﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Session.AddSession" %>
<div style="width:100%; text-align:left">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenu3"></div>
				    <div id="MsgSession" class="MessagePanel4" style="display:none">
						<img src="/images/ico_info.gif" style="border-width: 0px;" alt="" />
						<div id="MsgPrompt">							
						</div>
					</div>					
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("Request agreement by the student") %></h1>
							</div>
						</div>
					</div>
				</div>
				<div class="Center9001n">
					<div class="Center9001common">
							<div class="center9001content">
								<div class="teach_area">
									<div>
										<span style="color:#336699; font-size:18px"><%=GetText("TP071")%></span>
									</div>
									<div>
										<div class="floatl" style="width:305px">
											<span class="grey12"><%=GetText("C0115")%></span>
											<div class="teacher_profile">
												<div class="floatl" style="width:60px"><a href="<%=WWWHost %>/<%=SNO %>.htm" title="<%=UserInfoList[0][0]%>"><img src="<%=UserInfoList[0][1]==""?"/Images/no_pic.gif":UserInfoList[0][1] %>" width="50" height="50" border="0" /></a></div>
												<div class="floatr" style="width:220px"><span class="text14"><a href="<%=WWWHost %>/<%=SNO %>.htm"><%=UserInfoList[0][0]%></a></span></div>

												<div class="clear"></div>
											</div>
										</div>
										<div class="floatr" style="width:305px; margin-left:15px">
											<span class="grey12"><%=GetText("C0116")%></span>
											<div class="teacher_profile">
												<div class="floatl" style="width:60px"><a href="<%=WWWHost %>/<%=TNO %>T.htm" title="<%=UserInfoList[1][0] %>"><img src="<%=UserInfoList[1][1]==""?"/Images/no_pic.gif":UserInfoList[1][1] %>" width="50" height="50" border="0" /></a></div>
												<div class="floatr" style="width:220px"><span class="text14"><a href="<%=WWWHost %>/<%=TNO %>T.htm"><%=UserInfoList[1][0]%></a></span></div>
												<div class="clear"></div>
											</div>
										</div>
										<div class="clear"></div>
									</div>
									<div class="teacher_profile margin20">
									    <%if(LID==-1) {%>
									        <a href="#" class="specgbtn profile_btnspec" style="text-decoration:none" onclick="GetRequestTutorInfo()"><span><%=GetText("Request tutoring") %></span></a>
									        &nbsp;&nbsp;<a href="#" class="specgbtn profile_btnspec" style="text-decoration:none" onclick="GetCourses()"><span><%=GetText("Book Lesson")%></span></a> <div id="BookCourseID"></div>
									        
									    <%} %>
										<p class="pink18" id="TeachTitle">
										    <%if(CID==-1){ Response.Write(GetText("One-on-one tutoring"));}else{Response.Write(CourseInfo.Title);}%>
										</p>
										<div style="margin-top:10px; border:1px #eee solid; background-color:#fff; padding:5px">
										    <div class="margin20D" >
										        <ul class="formlist">
												<li id="LessonID">
												    <%if(CID!=-1){ %>
													<div class="item"><%=GetText("Which lesson?") %></div>
													<div class="op">
													    <select id="selLesson" onchange="LessonChange(this)">
													        <%foreach(Model.WWW_User.Teach.LessonModel lm in LessonList) {%>
													            <option value="<%=lm.LID %>:<%=lm.LongTime %>" <%=lm.LID==LID?"selected='selected'":"" %>><%=GetText("Lesson {0} {1}", new string[] { lm.Chapter.ToString(), HttpUtility.HtmlEncode(lm.Title) })%></option>
													        <%} %>													        
													    </select>
													</div>
													<div class='clear'></div>
													<%} %>
												</li>											
												<li>
												    <div class="item"><%=GetText("Languages") %></div>
												    <div class="op"><%=GetText("Language taught") %> <label id="LBselTL"><select id="selTL"><%=GetSelTL()%></select></label>
												        <p><%=GetText("Base Language") %> <label id="LBselBL"><select id="selBL"><%=GetSelBL()%></select></label></p>
												    </div>
												    <div class='clear'></div>
												</li>											
												<li>
									                <div class="item"><strong><%=GetText("Day & Time") %></strong></div>
								                    <div class="op"><select id="selDayTime"><%=GetSelDate(30)%></select>
											            <select id="selHour">
											                <option value="01">01</option><option value="02">02</option>
											                <option value="03">03</option><option value="04">04</option>
											                <option value="05">05</option><option value="06">06</option>
											                <option value="07">07</option><option value="08">08</option>
											                <option value="09">09</option><option value="10">10</option>
											                <option value="11">11</option><option value="12">12</option>
											                <option value="13">13</option><option value="14">14</option>
											                <option value="15">15</option><option value="16">16</option>
											                <option value="17">17</option><option value="18">18</option>
											                <option value="19">19</option><option value="20">20</option>
											                <option value="21">21</option><option value="22">22</option>
											                <option value="23">23</option><option value="00">00</option>
											            </select>:
											            <select id="selMinutes">
											                <option value="00">00</option>
											                <option value="15">15</option>
											                <option value="30">30</option>
											                <option value="45">45</option>
											                <option value="60">60</option>
											            </select>
											            <a href="javascript:void(0)" onclick="$GetSchedule$('<%=TNO %>','<%=UserInfoList[0][2] %>')"><%=GetText("Teacher Schedule")%></a>
											            <span style="color: Red;display:none" id="spStartTime"><br /><%=GetText("请选择大于当前的时间.") %></span>
                                                        <br /><span class="grey12"><%=GetText("My Timezone is {0}", new string[] { GetTimezoneText(UserInfoList[0][2] != "" ? UserInfoList[0][2] : "0") })%><br /><%=GetText("Tuition Day & Time the student requested")%></span>
                                                    </div>
                                                    <div class='clear'></div>
											    </li>
											    <li>
											        <div class="item"><strong><%=GetText("Time Length")%></strong></div>
										            <div class="op"><label id="LBselLongTime"><select id="selLongTime" onchange="LongTimeChange(this)"><%=GetSelLongTime("{0} hour")%></select></label></div>
										            <div class='clear'></div>
											    </li>
											    <li>
												    <div class="item"><%=GetText("Price")%></div>
												    <div class="op"><label id="PriceDiv"><%=UserInfoList[1][2]%></label> <%=GetText("TP016") %></div>
												    <div class='clear'></div>
												</li>
												<li>
												    <div class="item">Total Price</div>
												    <div class="op"><p><span class="price_num" id="TolPrice"><%=TolPrice %></span> ITC</p></div>
												    <div class='clear'></div>
												</li>
												<li>
													<div class="item">Using?</div>
													<div class="op"><p><select onchange="IMchange(this)" id="selIM" ><%=GetSelIM()%></select> <select id="selAudioType"><option value="1" ><%=GetText("Audio only") %></option><option value="2"><%=GetText("Audio/Video") %></option></select></p>
													    <p><%=GetText("Student:") %> <input id="SIMAccount" type="text"  value="<%=IMAccount[0] %>"/> <span name="__V_S" vt="0" elt1="SIMAccount" reg=".{1,50}" style="color: Red;display:none" class="validMsg"><%=GetText("Input the ID of the instant messenger.")%></span></p>
													    <p><%=GetText("Teacher: ") %> <span id="TIMAccount"><%=IMAccount[1] %></span></p>													
													</div>
													<div class='clear'></div>
												</li>
												<li>
												    <div class="item"></div>
												    <div class="op">
													    <div style="text-align:center; margin:10px 0px 0px 0px">
														    <div class="agreement_stu">
															    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
																    <tr>
																    <td width="30">&nbsp;</td>
																    <td><h4><a href="" target="_blank">Terms of Service</a></h4>
																    <p>I (student) understand that if the teacher agrees to the terms I have outlined above, I agree for italki to bill my account.<br />If I do not have enough credit in my italki account, I will send payment immediately.</p>																</td>
																    </tr>
																    <tr>
																    <td align="center"><input id="agree" type="checkbox" value=""  />&nbsp;<span style="color: Red;display:none" id="spAgree"><br /><%=GetText("Select the radio box.") %></span></td>
																    <td><strong>I agree to all of these terms</strong></td>
																    </tr>
															    </table>
														    </div>
													    </div>												
													</div>
													<div class='clear'></div>
												</li>
												</ul>											
											</div>
										</div>
									</div>
									<h3>Message</h3>
									<p><textarea id="txtCommInput" style="width:625px" rows="3"></textarea><span id="spMsg" style="color: Red;display:none" class="validMsg"><br /><%=GetText("请输入1到3000字符")%></span></p>
									<p><input id="btSave" class="button" type="button" value="<%=GetText("Save") %>"  <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"SubSave()\"":"onclick=\"NotAffirm()\""%> /></p>
								</div>
							</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div class="body_right"></div>
			<div class="clear"></div>
		</div>
		<div class="body_900F"></div>
	</div>
</div>
<select id="selLang" style="display: none"><%=GetLanguageSelect("")%></select>
<script>
var TNO='<%=TNO%>';
var timezone='<%=UserInfoList[0][2] %>';
var price=<%=UserInfoList[1][2] %>;
var selCID=<%=CID %>;
var hourText='<%=GetText("{0} hour") %>';
var WLText='<%=GetText("Which lesson?")%>';
var LTText='<%=GetText("Lesson {0} {1}")%>';
var TP250='<%=GetText("TP250") %>';
var MsgFail1='<%=GetText("你与当前老师的辅导关系还未结束，如果你想再请求当前老师辅导，请先结束当前老师的辅导再请求，或请求其他老师辅导！") %>';
var MsgFail2='<%=GetText("你已订阅当前课程,如果你想再选择当前课程请先结束当前课程或重新选择其他课程！") %>';
</script>
